package com.techzhi.jvm.deadlock;

public class ThreadB implements Runnable{
    @Override
    public void run() {
        synchronized (LockObj.obj2){
            System.out.println("ThreadB get obj2");
            synchronized (LockObj.obj1){
                System.out.println("ThreadB get obj1");
            }
        }
    }
}
